package com.example.demo.demos.web.cpt;

import com.yomahub.liteflow.annotation.LiteflowCmpDefine;
import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.annotation.LiteflowMethod;
import com.yomahub.liteflow.core.NodeComponent;
import com.yomahub.liteflow.enums.LiteFlowMethodEnum;
import com.yomahub.liteflow.enums.NodeTypeEnum;
import com.yomahub.liteflow.slot.DefaultContext;

@LiteflowComponent
public class MyDefineSwitchCpm {  
  
	@LiteflowMethod(value = LiteFlowMethodEnum.PROCESS_SWITCH, nodeType = NodeTypeEnum.SWITCH, nodeId = "s", nodeName = "选择节点")
	public String processSwitch1(NodeComponent nodeComponent){
		DefaultContext dataContext = nodeComponent.getContextBean(DefaultContext.class);
		System.out.println("执行switch");  
		return "b";  
	}  
}